package com.hdax.dm.rest.service;

import com.hdax.dm.dao.item.DmCinemaMapper;
import com.hdax.dm.entity.item.DmCinema;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/cinema")
public class DmCinemaRestService {

    @Autowired
    private DmCinemaMapper cinemaMapper;

    @RequestMapping(path = "/getCinema")
    public DmCinema getCinema(@RequestParam("cinemaId")Long cinemaId){
        return cinemaMapper.selectById(cinemaId);
    }
}
